<?php
// Load Menu
$this->template->menu('produto/add');
?>
 
<div id="container">
    <?php echo form_open('produto/save'); ?>
    	<?php echo validation_errors('<p>','</p>'); ?>
	    <table class="table_form">
	        <tr>
	            <td>
	            	<?php echo form_label('Nome*', 'nome'); ?>
	            </td>
	            <td>
	            	<?php echo form_input('nome', $nome); ?>
	            </td>
	        </tr>
	        <tr>
	            <td>
	            	<?php echo form_label('Descrição', 'descricao'); ?>
	            </td>
	            <td>
	            	<?php echo form_input('descricao', $descricao); ?>
	            </td>
	        </tr>
	        <tr>
	            <td>
	            	<?php echo form_label('Valor*', 'valor'); ?>
	            </td>
	            <td>
	            	<?php echo form_input('valor', $valor); ?>
	            </td>
	        </tr>
	        <tr>
	            <td colspan="2">
	            <?php if (isset($id)) echo form_hidden('id', $id); ?>
	            <div class="form-save-buttons">
	                <?php echo form_submit('save', 'Save', 'class="btn-blue"'); ?>
	                <?php echo form_button('cancel', 'Cancel', 'class="btn-blue" onClick="history.go(-1)"'); ?>
	            </div>
	            </td>
	        </tr>
	    </table>
    <?php echo form_close(); ?>
</div>